import request from '@/utils/request.js'
export const artGetChannelsService = () => {
  return request.get('/my/cate/list')
}
// 添加文章分类
export const artAddChannelService = (data) => {
  return request.post('/my/cate/add', data)
}
// 编辑文章分类
export const artEditChannelService = (data) => {
  return request.put('/my/cate/info', data)
}
// 删除文章分类
export const artDelChannelService = (id) => {
  return request.delete('/my/cate/del', { params: { id } })
}
//得到文章
export const artGetListService = (params) => {
  return request.get('/my/article/list', { params })
}
// //添加文章
export const artPublishService = (data) => {
  return request.post('/my/article/add', data)
}
//根据接口获取详情数据
export const artGetDetailService = (id) => {
  return request.get('my/article/info', { params: { id } })
}
//修改数据
export const artEditService = (data) => {
  return request.put('my/article/info', data)
}
//删除
export const artDelService = (id) => {
  return request.delete('my/article/info', { params: { id } })
}
